//
//  SWStatusModel.h
//  SinaWeather
//
//  Created by nan4 li on 12-5-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol SWWeiboCellDelegate <NSObject>
-(void)repostWeibo:(NSString*)statusId;
-(void)thumbImageClicked:(NSString*)thumbUrl;
@end

@interface SWStatusModel : NSObject
{
    NSString *statusId; 
    NSString *nickName;
    NSString *time;
    NSString *location;
    NSString *repostNum;
    NSString *text;
    NSString *headUrl;
    NSString *thumbUrl;
    NSString *orgnalUrl;
    
    
    CGRect rectNickName;
    CGRect rectTime;
    CGRect rectLocation;
    CGRect rectText;
    CGRect rectHeadImage;
    CGRect rectThumbImage;
    CGRect rectRepostNum;
    CGRect rectSepreateLine;
    
    //uiimage
    UIImage *headImage;
    UIImage *thumbImage;
    NSIndexPath* indexPath;
    
    id<SWWeiboCellDelegate>delegate;
    

}
@property(retain,nonatomic)NSString *statusId; 
@property(retain,nonatomic)NSString *nickName;
@property(retain,nonatomic)NSString *time;
@property(retain,nonatomic)NSString *location;
@property(retain,nonatomic)NSString *repostNum;
@property(retain,nonatomic)NSString *text;
@property(retain,nonatomic)NSString *headUrl;
@property(retain,nonatomic)NSString *thumbUrl;
@property(retain,nonatomic)NSString *orgnalUrl;


@property(assign,nonatomic)CGRect rectNickName;
@property(assign,nonatomic)CGRect rectTime;
@property(assign,nonatomic)CGRect rectLocation;
@property(assign,nonatomic)CGRect rectText;
@property(assign,nonatomic)CGRect rectHeadImage;
@property(assign,nonatomic)CGRect rectThumbImage;
@property(assign,nonatomic)CGRect rectRepostNum;
@property(assign,nonatomic)CGRect rectSepreateLine;

@property(retain,nonatomic)UIImage *headImage;
@property(retain,nonatomic)UIImage *thumbImage;


@property(assign,nonatomic)id<SWWeiboCellDelegate>delegate;

-(float)getcellHeight;
-(id)initWithDictionary:(NSDictionary*)dicStatus;

@end
